package com.open.capacity.user.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.capacity.model.system.SysUser;

/**
* @author 作者 ftquan E-mail: 464725602@qq.com
* @version 创建时间：2017年11月12日 上午22:57:51
 * 用户管理
 */
@Mapper
public interface SysUserDao  extends BaseMapper<SysUser> {

	@Options(useGeneratedKeys = true, keyProperty = "id")
	int save(SysUser sysUser);

	int updateByOps(SysUser sysUser);

	SysUser findByUsername(String username);

	SysUser findById(String id);

	int count(Map<String, Object> params);

	List<SysUser> findList(Map<String, Object> params);

}
